package org.ffmmx.common.controller;

import org.ffmmx.ybb.model.Login;
import org.ffmmx.ybb.model.LoginData;
import org.ffmmx.ybb.model.Ok;
import org.ffmmx.ybb.model.Result;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * 登录
 */
@RestController
public class LoginController {
    @RequestMapping(value = "/login", method = RequestMethod.POST)
    public Result<LoginData> login(@RequestBody() Login login) {
        System.out.println(login.getMobilePhone()+","+login.getSmsValidateCode());
        return new Ok(new LoginData());
    }

}
